#if !defined(__APP_POLL_H)
#define __APP_POLL_H

#include "pthread.h"
#include "mqueue.h"
#include "log/log.h"
#include "stdlib.h"

typedef struct
{
    void (*data_handler)(void *);
    void *args;
} Task;

int app_pool_init(int num);

void app_pool_close(void);

int app_pool_add_task(void (*data_handler)(void *), void *args);

#endif // MACRO
